package com.qidian.mes.dv.mapper;

import com.qidian.mes.pojo.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 小可怎么都睡不够
 * @Description
 * @Time 2024-04-09 15:11
 */
public interface SubjectMapper {
    int deleteBySubjectIds(@Param("subjectIds") Long [] subjectIds);
    int deleteBySubjectId(Long subjectId);
    int updateSubject(Subject subject);
    Subject selectBySubjectId(Long subjectId);
    int insertSubject(Subject subject);
    List<Subject> selectByPage(@Param("subject") Subject subject, @Param("start") int start, @Param("limit") int limit);
    int selectCount(Subject subject);
    Subject selectBySubjectName(String subjectName);
    Subject selectBySubjectCode(String subjectCode);
}
